<template>
	<div>
	我是{{textone}}头 
	<button @click="showParentValue">获取父组件的值</button>
	</div>
</template>
<script>
	export default {
		data() {
			return {}
		},
		//属于组件
		methods: {
			showParentValue(){
				alert(this.textone);
			}
		},
		components: {
			//组建名
		},
		props : ['textone']
	}
</script>
<style scoped="scoped">
	div{
		height: 100px;
		background-color: yellowgreen;
	}
</style>